/* Lišta "Doby doručení v horní liště" - hrynazdravi.cz - decentní verze */

table[class*=_applyProuzek]{
  background:#fff!important;
  border:0!important;
  border-radius:0!important;
  border-collapse:separate!important;
  box-shadow:none!important;
}
table[class*=_applyProuzek] td{
  font-family:Poppins,Arial,sans-serif!important;
  vertical-align:middle!important;
  box-sizing:border-box!important;
}

/* Levý text */
table[class*=_applyProuzek] td[rowspan]{
  background:transparent!important;
  font-weight:500!important;
  color:#6b5a48!important;
}

/* Boxíky dopravců: jemný okraj, bez výplně */
table[class*=_applyProuzek] td[class*=_textDoprava]:not([rowspan]),
table[class*=_applyProuzek] td[class*=_textDoruceni]{
  background:#fff!important;
  border:1px solid #f3e6d6!important;
  transition:border-color .2s ease;
}
table[class*=_applyProuzek] td[class*=_textDoprava]:not([rowspan]){
  border-bottom:0!important;
  border-radius:12px 12px 0 0!important;
  font-weight:600!important;
  color:#1a1a1a!important;
}
table[class*=_applyProuzek] td[class*=_textDoruceni]{
  border-top:0!important;
  border-radius:0 0 12px 12px!important;
  font-weight:500!important;
  color:#e86f00!important;
}

/* Emoji */
table[class*=_applyProuzek] tr:first-child td:nth-child(2)::before{content:"📦 "}
table[class*=_applyProuzek] tr:first-child td:nth-child(3)::before{content:"⚡ "}
table[class*=_applyProuzek] tr:first-child td:nth-child(4)::before{content:"🚚 "}

/* Zelená tečka pryč */
[class*=_applyKruh]{display:none!important}

/* Obal lišty: bílé pozadí a žádná pevná výška */
:is(div,section,header,aside):has(>table[class*=_applyProuzek]),
:is(div,section,header,aside):has(>:is(div,span,section)>table[class*=_applyProuzek]){
  background:#fff!important;
}
div:has(>table[class*=_applyProuzek]){
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
}

/* PC */
@media(min-width:768px){
  table[class*=_applyProuzek]{
    border-spacing:10px 0!important;
    padding:6px 8px!important;
    margin:0 auto!important;
  }
  table[class*=_applyProuzek] td[rowspan]{font-size:13px!important;padding-right:14px!important}
  table[class*=_applyProuzek] td[class*=_textDoprava]:not([rowspan]){font-size:13px!important;padding:7px 16px 1px!important}
  table[class*=_applyProuzek] td[class*=_textDoruceni]{font-size:11.5px!important;padding:0 16px 7px!important}
}

/* PC: po najetí myší jen jemně zoranžoví okraj boxíku */
@media(min-width:768px) and (hover:hover){
  table[class*=_applyProuzek] tbody:has(tr:first-child td:nth-child(2):hover) :is(tr:first-child td:nth-child(2),tr:last-child td:nth-child(1)),
  table[class*=_applyProuzek] tbody:has(tr:last-child td:nth-child(1):hover) :is(tr:first-child td:nth-child(2),tr:last-child td:nth-child(1)),
  table[class*=_applyProuzek] tbody:has(tr:first-child td:nth-child(3):hover) :is(tr:first-child td:nth-child(3),tr:last-child td:nth-child(2)),
  table[class*=_applyProuzek] tbody:has(tr:last-child td:nth-child(2):hover) :is(tr:first-child td:nth-child(3),tr:last-child td:nth-child(2)),
  table[class*=_applyProuzek] tbody:has(tr:first-child td:nth-child(4):hover) :is(tr:first-child td:nth-child(4),tr:last-child td:nth-child(3)),
  table[class*=_applyProuzek] tbody:has(tr:last-child td:nth-child(3):hover) :is(tr:first-child td:nth-child(4),tr:last-child td:nth-child(3)){
    border-color:#ffb066!important;
  }
}

/* Mobil: nahoře jeden řádek textu, pod ním tři boxíky */
@media(max-width:767px){
  div:has(>table[class*=_applyProuzek]){
    min-height:0!important;
    padding-top:0!important;
    padding-bottom:0!important;
  }
  table[class*=_applyProuzek]{
    display:block!important;
    width:calc(100% + 15px)!important;
    max-width:none!important;
    margin:-12px 0 0 -15px!important; /* zruší posun tabulky vůči obalu */
    padding:2px 20px 2px 20px!important;
    box-sizing:border-box!important;
    box-shadow:none!important;
  }
  table[class*=_applyProuzek] tbody{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr));
    column-gap:5px;
    row-gap:0;
  }
  table[class*=_applyProuzek] tr{display:contents!important}
  table[class*=_applyProuzek] td{display:block!important;min-width:0}
  table[class*=_applyProuzek] td[rowspan]{
    grid-column:1 / -1;
    text-align:center!important;
    font-size:10px!important;
    font-weight:500!important;
    line-height:1.3!important;
    white-space:nowrap!important;
    padding:0 0 2px!important;
  }
  table[class*=_applyProuzek] td[rowspan]::before{content:""!important}
  table[class*=_applyProuzek] td[class*=_textDoprava]:not([rowspan]){
    font-size:11px!important;
    font-weight:600!important;
    line-height:1.15!important;
    text-align:center!important;
    padding:3px 3px 0!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    border-color:#f7ede0!important;
    border-radius:10px 10px 0 0!important;
  }
  table[class*=_applyProuzek] td[class*=_textDoruceni]{
    font-size:9.5px!important;
    font-weight:500!important;
    line-height:1.15!important;
    text-align:center!important;
    padding:0 3px 3px!important;
    white-space:normal!important;
    border-color:#f7ede0!important;
    border-radius:0 0 10px 10px!important;
  }
}

@media(prefers-reduced-motion:reduce){
  table[class*=_applyProuzek] td{transition:none!important}
}
